#!/usr/bin/env python
#coding=utf-8

import csv
def CSVwriter(data, headline, filename):
    fh = open(filename, 'w')
    writer = csv.writer(open(filename, "wb"))
    writer.writerow(headline)
    for row in data:
        writer.writerow(row)
    return True